home *** CD-ROM | disk | FTP | other *** search
/ Software 2000 / Software 2000 Volume 1 (Disc 1 of 2).iso / utilities / u264.dms / in.adf / ARPPRO3.0 / PRO.RUN / SPrintf < prev    next >
Encoding:
Text File  |  1992-04-18  |  1.4 KB  |  64 lines

  1.  
  2.  
  3.  
  4.      SPrintf(39.0)      ARP Programmers Manual     SPrintf(39.0)
  5.  
  6.  
  7.  
  8.      NAME
  9.     SPrintf - print formatted data to string.
  10.  
  11.      SYNOPSIS
  12.       count = SPrintf(buffer, "String", *args)
  13.         d0            d0         A0          A1
  14.  
  15.      FUNCTION
  16.       This function    performs 'standard' C-style formatting of data
  17.       to the string buffer "buffer".  It uses the exec function
  18.       RawDoFmt() to    do the actual formatting of the    data.  The %
  19.       types    supported by this function are quite standard, see any
  20.       C reference for details.
  21.  
  22.      INPUTS
  23.       buffer - A string buffer in which to store the formatted
  24.           string.  This buffer must be large enough to hold
  25.           the formatted string; there is no error checking
  26.           done for buffer overflow.
  27.  
  28.       "String" - pointer to    a C-style format string.
  29.  
  30.       *args    - Pointer to start of argument stream.
  31.  
  32.      RESULT
  33.       count    - if all goes well, the    total count of characters
  34.           copied to buffer will be returned.  If an error
  35.           occured, this    function will return -1.
  36.  
  37.      ADDITIONAL    CONSIDERATIONS
  38.       You must be aware of the values actually passed to this
  39.       function by your compiler, especially    since some compilers
  40.       promote all values to    32 bit integers    in function calls.
  41.  
  42.      BUGS
  43.       None known.  Beware of overwriting end of buffer.
  44.  
  45.      SEE ALSO
  46.       Printf, FPrintf, exec.library/RawDoFmt, C language reference
  47.       on printf.
  48.  
  49.      AUTHOR
  50.       CDH
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.      Page 1                         (printed 9/12/89)
  64.